package com.kingdee.eas.xr;

import com.kingdee.bos.BOSException;
import com.kingdee.bos.BOSObjectFactory;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.Context;

public class PublicSQLFacadeFactory
{
    private PublicSQLFacadeFactory()
    {
    }
    public static com.kingdee.eas.xr.IPublicSQLFacade getRemoteInstance() throws BOSException
    {
        return (com.kingdee.eas.xr.IPublicSQLFacade)BOSObjectFactory.createRemoteBOSObject(new BOSObjectType("524EF490") ,com.kingdee.eas.xr.IPublicSQLFacade.class);
    }
    
    public static com.kingdee.eas.xr.IPublicSQLFacade getRemoteInstanceWithObjectContext(Context objectCtx) throws BOSException
    {
        return (com.kingdee.eas.xr.IPublicSQLFacade)BOSObjectFactory.createRemoteBOSObjectWithObjectContext(new BOSObjectType("524EF490") ,com.kingdee.eas.xr.IPublicSQLFacade.class, objectCtx);
    }
    public static com.kingdee.eas.xr.IPublicSQLFacade getLocalInstance(Context ctx) throws BOSException
    {
        return (com.kingdee.eas.xr.IPublicSQLFacade)BOSObjectFactory.createBOSObject(ctx, new BOSObjectType("524EF490"));
    }
    public static com.kingdee.eas.xr.IPublicSQLFacade getLocalInstance(String sessionID) throws BOSException
    {
        return (com.kingdee.eas.xr.IPublicSQLFacade)BOSObjectFactory.createBOSObject(sessionID, new BOSObjectType("524EF490"));
    }
}